package com.han.gateway.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Collections;
import java.util.List;

@Data
@Configuration
@ConfigurationProperties(prefix = "ips")
public class IpsConfig {

    /**
     * 配了白名单，只看白名单就行了
     */
    private List<String> whites = Collections.emptyList();

    /**
     * 没有配置白名单的情况下，黑名单配置才生效
     */
    private List<String> blacks = Collections.emptyList();

}
